package com.ruoyi.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.domain.Product;
import com.ruoyi.system.domain.vo.ProductVo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ProductMapper extends BaseMapper<Product> {

    public int create(Product saveProduct);

    public int deleteProduct(Product product);

    public int updateProduct(Product list);

    public int shelfProduct(Product product);

    public List<Product> selectProductList(Product product);

    public List<Product> getProductList(Product product);

    public Product selectProductId(Integer id);

    public List<ProductVo> getProductVo(ProductVo productVo);

}
